NOTE: This Technical Q&A has been
retired. Please see the Technical Q&As
page for current documentation.![]() ![]() |
Q Has the manner in which the system clock keeps time changed? The Date
& Time control panel in System 7.5 only allows a range of years from 1920 through
2019, and I thought that all clock ticks counted up from 1904. A The date and time information in the Date & Time control panel is obtained from the system global variable 'Time', which is a four-byte value that stores the number of seconds elapsed since midnight, January 1, 1904. The System 7.5 Date & Time Control Panel allows you to access the range of dates from 1 January 1920 through 31 December 2019 (the System 7.1 Date & Time Control Panel did also), but this is not the result of any changes in the global variable 'Time' -- it is merely an interface change. The 'Ticks' global variable, which you can access with the function
'TickCount', returns the number of ticks elapsed since you last started up your
system. This has not changed either. Developer CD, March 1995: Documentation: Inside Macintosh: Macintosh TB Essentials: Chapter 2 - Event Manager: page 2-112. Updated: 1-May-95 |
Developer Documentation | Technical Notes | Development Kits | Sample Code |